<div class="full-screen">
    <header>
    <div class="a-bar">
        <a href="javascript:history.back()" class="a-back">
            <i class="arr left"></i>
            返回
        </a>
        <div class="a-name">
            登录
        </div>
        <div class="a-right">
            <a href="<{link app=b2c ctl=wap_passport act=signup}>" class="btn">
                免费注册
            </a>
        </div>
    </div>
    </header>
    <div class="full-padding">
        <{include file='wap/passport/signin.html'}>
  <{if $login_image_urls.0}>
  <div id="trust_signin" class="trust-signin">
    <{foreach from=$login_image_urls item=login_image}>
    <{$login_image}>
    <{/foreach}>
  </div>
  <{/if}>
          <{if $login_image_url}>
          <div id="trust_signin" class="trust-signin" style="text-align: center;box-sizing: border-box">
            <{foreach from=$login_image_url item=login_image}>
          <button type="submit" class="btn orange" rel="_request" >微信免登</button>
            <a href="<{$login_image.url}>"style="display: inline-block;width: 100%;height: 41.66px;margin-top: 25px;"><img src="/public/app/wap/statics/trustlogin/wechat.png"  width="100%" height="41.66px"></a>
            <{/foreach}>
          </div>
          <{/if}>
    </div>
</div>

<script>


    $(function () {
        var url=$("a.verify-code").attr("href");
        $("a.verify-code").attr("href",null);

        $("a.verify-code").bind("click",function () {
            var xhr = new XMLHttpRequest();
            xhr.open("GET",url,true);
            xhr.responseType = "blob";
            xhr.onload=function () {
                if(this.status==200){
                    var blob=this.response;
                    console.log(blob);
                    var img = document.createElement("img");
                    var _src=window.URL.createObjectURL(blob);
                    $("img.verify-code").attr("src",_src);
                }
            };
            xhr.send();
        })
    })
</script>